<template>
  <div style="margin-bottom: 30px;display: flex;">
    <el-input
      placeholder="今天想吃什么菜呢？"
      prefix-icon="el-icon-search"
      size="small"
      style="width: 400px;margin-right: 10px"
      v-model="keywords">
          </el-input>
    <el-button size="small" type="primary" icon="el-icon-search" @click="searchClick">搜索</el-button>
  </div>
</template>

<script>
  
  export default {
    name: 'SearchBar',
    data () {
      return {
        keywords: '',
        cardLoading: []
      }
    },
    methods: {
      searchClick () {
        alert(this.keywords)
        this.$store.dispatch('getLike',this.keywords);
      }
    }
  }
</script>

<style scoped>

</style>